package com.my.commonlibrary.fragment;

import android.os.Bundle;
import android.support.v4.app.Fragment;

import com.my.commonlibrary.base.BaseTabViewPagerFragment;

import java.util.List;

/**
 * Author : Cooper
 * Time : 2016/9/27  10:59
 * Description : 首页fragment TabViewPager 实现
 */

public class HomeTabViewPagerFragment extends BaseTabViewPagerFragment {

    @Override
    protected void initViewpagerFragmentList(List<Fragment> fragmentList, List<String> titleList) {
        Fragment oneFragment = new H_WebViewFragment();
//        Bundle bundle = new Bundle();
//        bundle.putString("background_color","#0097A7");
//        oneFragment.setArguments(bundle);

        Fragment twoFragment = new H_PullToRefreshFragment();
//        Bundle bundle1 = new Bundle();
//        bundle1.putString("background_color","#009688");
//        twoFragment.setArguments(bundle1);

        Fragment threeFragment = new H_RetrofitFragment();
        Bundle bundle2 = new Bundle();
        bundle2.putString("background_color","#00BCD4");
        threeFragment.setArguments(bundle2);

//        Fragment fourFragment = new H_NetroidFragment();
        Fragment fourFragment = new H_CameraAndPhotoAlbumFragment();

        fragmentList.add(oneFragment);
        fragmentList.add(twoFragment);
        fragmentList.add(threeFragment);
        fragmentList.add(fourFragment);

        titleList.add("我的桌面");
        titleList.add("我的电脑");
        titleList.add("我的手机");
        titleList.add("我的公司");
    }
}
